﻿using DtoFw.Query;
using DtoFw.Result;

namespace DtoFw.Interface
{
    public interface IRole
    {
        [Api(Router = "role/get/pager")]
        BaseGenericResult<Pager<RoleResult>> Query(BaseQuery query);
        [Api(Router = "role/delete")]
        BaseResult DeleteRoles(DeleteDto query);
        [Api(Router = "role/get/role/menus")]
        BaseGenericResult<RoleMapMenuResult> GetRoleMapMenus(RoleQuery query);
        [Api(Router = "role/post/role")]
        BaseResult AddRole(RoleEditInfo request);
        [Api(Router = "role/get/{params}")]
        BaseGenericResult<RoleResult> QueryRole(long roleId);
    }
}
